# It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Desktop Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description - Turn off Flash Auto Update # Configuration Type - COMPUTER if [ $# == '0' ]; then #!/bin/bash ## Make sure script is run by root if [[ $EUID -ne 0 ]]; then echo "Script must be run as root" 1>&2 exit 1 fi ## Conf file that controls Update Settings CONF="/Library/Application Support/Macromedia/mms.cfg" ## Set Updates to "Never Check" cat > "${CONF}" << EOF AutoUpdateDisable=1 SilentAutoUpdateEnable=0 EOF ret=$? if [ $ret == "0" ]; then echo "Turned off the Flash update" else echo "Error in executing the code" fi exit $ret else echo "Invalid Arguments - Please refer description of the script" exit 1 fi